<!DOCTYPE html>
<!--
Auteur: Claudia Plas, S1049080
-->
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Aanmelden lidmaatschap</title>
    </head>
    <body>
        <?php
            $connect = mysql_connect("school.home-server.nl","root","6DMcURL");
            if (!$connect)
                {
            die('Kan geen verbinding maken: ' . mysql_error());
                }
            mysql_select_db("zoen",$connect);
                $student=mysql_query("SELECT * FROM student",$connect);
                $id=$_GET["id"];
        ?>
        <form>
            <select>
                <?php for($i = 0;$i< mysql_num_rows($student);$i++)
                      {$row = mysql_fetch_assoc($student); 
                       echo '<option>'.$row["studentnummer"].'</option>';
                      }
                ?>
            </select>
            <p/>
            <input type="submit" name="submit" value="Aanmelden"/>
        </form>
    </body>
</html>
